import {Directive, ElementRef,} from '@angular/core';

@Directive({
  selector: '[appChangeText]'
})
/**
 * 自定义指令
 */
export class ChangeTextDirective {
  constructor(Element: ElementRef) {
    console.log(Element);
    Element.nativeElement.innerText = 'Text is changed by changeText Directive. ';
  }
}
